import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)



// import routes from './routes';
import home from "./Home/home";
import Product from "./Product/product";
import Info from "./Info/info";
import Merchant from "./Merchant/merchant";
import search from "./Search/search";
import order from "./Order/order";
import Address from "./Address/address";
import Pay from "./Pay/pay";

const router = new VueRouter({
    routes:[
        ...home,
        ...Info,
        ...search,
        ...order,
        ...Merchant,
        ...Product,
        ...Address,
        ...Pay,
    ],
    mode:'hash',
    // routes,
    // mode:'history'
})

export default router
